export const rules = {
  bookName: [
    { required: true, message: "请输入标准名称", trigger: "change" },
    { min: 1, max: 50, message: "长度在 1 到 50 个字符", trigger: "change" },
  ],
  description: [
    { required: true, message: "请输入标准简介", trigger: "change" },
    {
      min: 1,
      max: 9999,
      message: "长度在 1 到 9999 个字符",
      trigger: "change",
    },
  ],
  scopeDescription: [
    { required: true, message: "请输入适用范围", trigger: "change" },
    {
      min: 1,
      max: 9999,
      message: "长度在 1 到 9999 个字符",
      trigger: "change",
    },
  ],
  status: [{ required: true, message: "请选择", trigger: "change" }],
  standardCode: [
    { required: true, message: "请输入标准号", trigger: "change" },
  ],
  retrieveTags: [
    { required: true, message: "请选择标准类别", trigger: "change" },
  ],
  standardId: [
    { required: true, message: "请选择标准筛选", trigger: "change" },
  ],
  standardCategoryIds: [
    { required: true, message: "请选择条件筛选", trigger: "change" },
  ],
  effectDate: [
    { required: true, message: "请选择实施时间", trigger: "change" },
  ],
  releaseDate: [
    { required: true, message: "请选择发布时间", trigger: "change" },
  ],
  releaseInstitution: [
    { required: true, message: "请输入发布机构", trigger: "change" },
  ],

  language: [{ required: true, message: "请选择语言类型", trigger: "change" }],

  coverFiles: [{ required: true, message: "请上传图片文件", trigger: "blur" }],
  pdfHomePageFiles: [
    { required: true, message: "请上传图片文件", trigger: "blur" },
  ],
  pdfCatalogFiles: [
    { required: true, message: "请上传图片文件", trigger: "blur" },
  ],
  contentFiles: [
    { required: true, message: "请上传内容文件", trigger: "blur" },
  ],
  dataScope: [{ required: true, message: "请选择展示范围", trigger: "change" }],
};
